package com.oauth2_security.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.security.core.userdetails.UserDetails;

import com.oauth2_security.entity.UserInfo;


public interface UserDao extends JpaRepository<UserInfo, String>, JpaSpecificationExecutor<UserInfo>{

	/*
	 * 按用户名称查询用户
	 */
	UserInfo findByUsername(String username);

	/*
	 * 按用户昵称查询用户
	 */
	UserInfo findByUserNickname(String username);

}
